package com.tegtech.starter.log.service;

import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.tegtech.starter.log.domain.OperLog;
import com.tegtech.starter.log.mapper.OperLogRecordMapper;

/**
 * 产生操作日志记录人物
 * 
 * @author Jun
 */
@Service
public class OperLogTaskService extends ServiceImpl<OperLogRecordMapper, OperLog> {

	/**
	 * 记录操作日志
	 * 
	 * @param operLog 操作日志信息
	 * @return 任务task
	 */
	@Async("threadPoolTaskExecutor")
	public void record(final OperLog operLog) {
		baseMapper.insert(operLog);
	}

}
